Efficiency in C++

نویسنده

  • Stanley B. Lippman
چکیده

In this talk, we present a series of C++ programming design idioms for writing efficient C++ programs, briefly review the underlying C++ object model, and turn to design alternatives when the idioms themselves become overwhelmed with, say, large-scale object creation and copy. We look at object-based and object-oriented design, use of the STL container classes and generic algorithms, and the design alternatives of inheritance versus parameterization through use of the C++ template facility. This is a particularly effective area of program efficiency because (a) the idioms generally make for more readable programs, and (b) once the idioms and implementation (or object) model is internalized, these gains in efficiency come mostly for free I like to think of them as low-hanging fruit. In the course of the tutorial, I’ll point out areas where experienced C programmers tend to write correct but frightfully sluggish C++ code by contrasting C and C++ programming idioms. Biography: STANLEY LIPPMAN is a consultant in both the entertainment and aerospace industries in the efficient use of C++ for large-scale software systems. Prior to this, he was principal software engineer at Walt Disney Feature Animation, then software technical director for a segment of Fantasia 2000. While at AT&T Bell Laboratories, he led the cfront Release 3.0 and Release 2.1 compiler development team. Following that, Stan was a member of the Bell Laboratories Foundation Project, responsible for the object model component of a research C++ programming environment. He has presented talks on C++ worldwide, including OOPSLA, ECOOP, Sigplan, and TOOLS

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

بررسی پارامترهای ترمودینامیکی و میزان اسانس در فرایند خشک‌شدن رزماری با استفاده از پیش‌تیمار مایکروویو پالسی

Today the use of pretreatment operations to reduce time, energy and cost of drying of agricultural products and foodstuffs are taken into consideration. In this study the Rosemary herb dried by using the microwave pre-treatment at three treatments (90 W for 5 min, 180 W for 2.5 min and 360 W for 1.5 min) and control treatment (without pre-treatment) in a hot air dryer at temperatures of 40, 50 ...

متن کامل

Growth Performance and Feed Conversion Efficiency of Crossbred Heifers

Theexperiment was conducted to investigate the growth performance and feed conversion efficiency of crossbred heifer at different age level in Government Dairy Farm in Bogra, Bangladesh. Twelve female crossbred heifers were equally distributed (n=3) into four groups [Group A: (7±2 months), B: (12±2 months), C: (15±2 months) and D: (20±2 months)] according to age and fed concentrate mix, rice st...

متن کامل

The Investigation of Planting Season Effect on Yield and Phenology of Potato (Solanum tuberosum L.) Culivars Using Thermal Indices

In order to evaluate the effect of autumn and winter planting on yield and phenology of potato cultivars using thermal indices an experiment was coducted in split plot in time based on a radomized compelet block design with three replications at Behbahan Agriculture Research Station in Khuzestan province, south of Iran in 2014 and 2015. Cultivar (Sante, Savalan and Javid) was considered as main...

متن کامل

Design and construction of evaporative local cooling coatings and evaluate their efficiency in improving some perceptual indicators in laboratory conditions

Introduction: One way to reduce the level of heat strain is to use personal evaporative cooling coats. such as the wrist, ankle, head and neck. The purpose of this study is to design, construct, and determine the cooling power of local cooling coatings and evaluate their efficiency in improving perceptual indicators in the laboratory. Materials and Methods: Initially, the design and constructio...

متن کامل

Water quality management in earthen ponds using an optimum carbon/ nitrogen ratio

The main goal of the current study was to evaluate the effects of C/N ratio on water quality parameters and production level at high stocking density pond. The C/N ratio of the experimental ponds were arranged by addition of corn starch to the pond. There were three treatments in the current study; control one without corn starch addition and treatments two and three which contain C/N rations o...

متن کامل

Marketing Performance of Salad Vegetables: The Case of Cabbage Marketing in Abia State, Nigeria

This study analyzed the performance of cabbage marketing in Abia State, Nigeria. Specifically the study sought to: describe socio-economic characteristics of cabbage marketers; identify marketing channels of cabbage; determine marketing cost components of cabbage marketers; determine marketing margins, market share and marketing efficiency of cabbage marketers; and determine socio-economic fact...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999